<?php
class Db_Object_Manager
{
	static protected $_objects = null;
	
    /**
     * Get list of registered objects (names only)
     * @return array
     */
    static public function getRegisteredObjects()
    {
    	if(is_null(self::$_objects))
    	{
    		 $paths = File::scanFiles(Db_Object::getConfigPath() , array('.php'), false, File::Files_Only);
    		  	
    		 if(!empty($paths))
    		 	foreach ($paths as $path)
    		 		self::$_objects[] = substr(basename($path), 0, -4);		
    	}  
    	return self::$_objects;
    }
}